Page({
  data: {
    history:[]
  },
  inputcon: function(e) {
    this.value = e.detail.value;
  },
  inputcon1: function(e) {
    this.value1 = e.detail.value;
  },
  // 缓存多条数据
  test:function() {
    let arr = wx.getStorageSync("test1") || [];
    arr.unshift(this.value);
    arr.unshift(this.value1)
    wx.setStorageSync("test1", arr)
    
  },
  // 缓存多条数据
  history: function() {
    this.setData({
      history: wx.getStorageSync("test1")
    })
  },
})